{% extends "admin/base_site.html" %}
{% load i18n adminmedia %}

{#--
 - $Id: djanet.html 7557b5d4d82b 2012/12/02 09:07:16 pgurumur $
 - Copyright (c) 2009 Prabhu Gurumurthy  <pgurumur@gmail.com>
 - 
 - Permission to use, copy, modify, and distribute this software for any
 - purpose with or without fee is hereby granted, provided that the above
 - copyright notice and this permission notice appear in all copies.
 -
 - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 - WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 - MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 - ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 - WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 - ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 - OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#}

{% block title %}
{% block djanet_title %}{% endblock %} | djanet site
{% endblock %}

{% block bodyclass %}dashboard{% endblock %}

{% block extrahead %}
<link type="text/css" href="/django/djanet/media/jquery/css/ui-lightness/jquery-ui-1.8.9.custom.css" rel="Stylesheet" />
<link type="text/css" href="/django/djanet/media/jquery/css/flexigrid/flexigrid.css" rel="stylesheet">

<script type="text/javascript"
   src="/django/djanet/media/jquery/js/jquery-1.4.4.min.js">
</script>
<script type="text/javascript"
   src="/django/djanet/media/jquery/js/jquery-ui-1.8.9.custom.min.js">
</script>
<script type="text/javascript"
   src="/django/djanet/media/jquery/js/flexigrid.js">
</script>

<script type = "text/javascript"
    src = "/django/djanet/media/djquery.js">
</script>
<script type = "text/javascript">

$('html').ajaxSend(
function(event, xhr, settings) {
   function getCookie(name) {
      var cookieValue = null;
      if (document.cookie && document.cookie != '') {
         var cookies = document.cookie.split(';');
         for (var ix = 0; ix < cookies.length; ix++) {
            var cookie = jQuery.trim(cookies[ix]);
            // Does this cookie string begin with the name we want?
            if (cookie.substring(0, name.length + 1) == (name + '=')) {
               cookieValue = decodeURIComponent(
                  cookie.substring(name.length + 1));
               break
            }
         }
      }
      return cookieValue;
   }
  
   if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {          // Only send the token to relative URLs i.e. locally.
      xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
   }
});
</script>


<style>
.flexigrid div.fbutton .add {
   background: url(/django/djanet/media/jquery/css/images/add.png) no-repeat center left;
}
 
.flexigrid div.fbutton .delete {
   background: url(/django/djanet/media/jquery/css/images/close.png) no-repeat center left;
}

body { font-size: 75%; }
#tabs { width: 900px; }
</style>

{% block djanet_style %} {% endblock %}

{% endblock %}

{% block content %}
<div = "djdialog" title = "Message">
   <p id = "djmesg"></p>
</div>

<div id = "content-main" align = "center">
   {% block djanet_body %} {% endblock %}
</div>

{%block djanet_script %}{% endblock %}
{% endblock %}
